﻿<UserControl x:Class="SLApp_Test.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
             d:DesignHeight="300"
             d:DesignWidth="400">
   <Grid>
      <Grid.ColumnDefinitions>
         <ColumnDefinition></ColumnDefinition>
         <ColumnDefinition></ColumnDefinition>
      </Grid.ColumnDefinitions>
      <toolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="{Binding BusyContent}">
         <toolkit:BusyIndicator.Content>
            <StackPanel Orientation="Vertical">
               <Button Content="Who am I"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="whoami"></Button>
               <Button Content="Get bookings"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="get"></Button>
					<Button Content="Get with skip(3) take(2) projects"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="take_skip"></Button>
					<Button Content="Get with take(10) projects"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="take"></Button>
					<Button Content="Get with skip(10) projects"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="skip"></Button>
               <Button Content="Create LINQ employee"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="createemployee"></Button>
               <Button Content="Get inserted employee"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="getinserted"></Button>
               <Button Content="Update inserted employee"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="updatelastemployee"></Button>
               <Button Content="Deactivate last created employee"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="deactivatelastemployee"></Button>
               <Button Content="Delete last employee"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="deletelastcreatedemployee"></Button>
               <Button Content="Use join with get"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="getjoin"></Button>
               <Button Content="Use left join with get"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="getleftjoin"></Button>
               <Button Content="Test"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="test"></Button>
               <Button Content="Get view"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="getviews"></Button>
               <Button Content="Tell me default view's id for Project entity"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="getdefaultviewforproject"></Button>
               <Button Content="Get project with random view (was requested above)"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="getprojectswithrandomview"></Button>
               <TextBlock Margin="5,10,5,2">Create test data for invocie</TextBlock>
               <Button Content="Create test data for invocie"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="invoice_createtestdata"></Button>
               <Button Content="Clean up invoice test data"
                       Command="{Binding ExecuteCommand}"
                       CommandParameter="invoice_cleanup"></Button>
            </StackPanel>
         </toolkit:BusyIndicator.Content>
      </toolkit:BusyIndicator>
      <ScrollViewer VerticalScrollBarVisibility="Auto"
                    HorizontalScrollBarVisibility="Auto"
                    Grid.Column="1">
         <TextBox IsReadOnly="True"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch"
                  HorizontalContentAlignment="Left"
                  VerticalContentAlignment="Top"
                  Text="{Binding Messager.Content}"></TextBox>
      </ScrollViewer>
   </Grid>
</UserControl>